<%@page import="com.Service.BO.DirectoratesBO"%>
<%@page import="org.omg.PortableServer.LIFESPAN_POLICY_ID"%>
<%@page import="com.Service.BO.SupMaterialsBO"%>
<%@page import="com.Service.BO.CountryBO"%>
<%@page import="java.util.Iterator"%>
<%@page import="com.Service.BO.RefValueBO"%>
<%@page import="java.util.List"%>
<%@page import="com.ServiceController.SpecialismController"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>Service Directory</title>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
        <style media="all" type="text/css">
            @import "css/all.css";.MandatoryColour {
                color: #F00;
            }
            #main #middle #center-column form .listing.form .bg .first #TabbedPanels2 .TabbedPanelsContentGroup .TabbedPanelsContent.TabbedPanelsContentVisible table tr td {
                text-align: left;
            }
        </style>
        <style type="text/css">
            .tableHeading2 {	font-weight: bold;
                             font-variant: normal;
            }
            #main #middle #center-column form .listing.form .bg .first #TabbedPanels1 .TabbedPanelsContentGroup .TabbedPanelsContent.TabbedPanelsContentVisible .listing {
                font-weight: bold;
            }
            #main #middle #center-column form .listing.form .bg .first #TabbedPanels1 .TabbedPanelsContentGroup .TabbedPanelsContent.TabbedPanelsContentVisible .listing .normal .first.style2 {
                font-weight: normal;
            }
            #main #middle #center-column form .listing.form .bg .first #TabbedPanels1 .TabbedPanelsContentGroup .TabbedPanelsContent.TabbedPanelsContentVisible .listing .normal td {
                font-weight: normal;
            }
            #main #middle #center-column form .listing.form .bg .first #TabbedPanels1 .TabbedPanelsContentGroup .TabbedPanelsContent.TabbedPanelsContentVisible table tr td {
                font-weight: normal;
            }
        </style>
        <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            .TableHeading {	font-weight: bold;
                            font-variant: normal;
            }
            #main #middle #center-column form .listing.form .bg .first #TabbedPanels1 .TabbedPanelsContentGroup .TabbedPanelsContent.TabbedPanelsContentVisible fieldset table {
                font-weight: bold;
            }
            #main #middle #center-column form .listing.form .bg .first #TabbedPanels1 .TabbedPanelsContentGroup .TabbedPanelsContent.TabbedPanelsContentVisible fieldset table {
                font-weight: bold;
            }
        </style>
        <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    </head>
    <body>
        <div id="main">

            <div id="header">
                <a href="index.html" class="logo"><img src="img/logo.png" width="954" height="112" alt="" /></a>


            </div>
            <div id="middle">
                <div id="left-column">
                    <h3>Home</h3>
                    <ul class="nav">
                        <li><a href="ListOrganController">Organization</a></li>
                        <li></li>
                        <li><a href="Services.jsp">Services</a></li>
                        <li><a href="Premises.jsp">Premises</a></li>
                        <li><a href="#">Forum</a>			    </li>
                        <li class="last"><a href="#">Fsoft Mail</a></li>
                    </ul>
                    <h3>Geograpphy</h3>
                    <ul class="nav">
                        <li><a href="TRegion.jsp">Trust region</a></li>

                        <li><a href="GovRegion.jsp">Government Region</a></li>
                    </ul>
                    <a href="#" class="link">Help</a>
                    <a href="index.jsp" class="link">Logout</a>
                </div>
                <div></div>
                <script type="text/javascript">
                    function ValidateOrg()
                    {
                        var a = document.forms["organ"]["orgname"].value;
                        var b = document.forms["organ"]["shortDesc"].value;
                        var c = document.forms["organ"]["Add1"].value;
                        var d = document.forms["organ"]["postcode"].value;
                        var e = document.forms["organ"]["type"].value;
                        var f = document.forms["organ"]["number"].value;
                        
                        if(a == null || a == "")
                        {
                            alert("Organization Name field Cannot Be Empty");
                            return false;
                            
                        }
                        else if(b == null || b == "")
                        {
                            alert("Short Description Field Cannot Be Empty");
                            return false;
                        }
                        else if(c == null || c == "")
                        {
                            alert("Address Line 1 Field Cannot Be Empty");
                            return false;
                        }
                        else if(d == null || d == "")
                        {
                            alert("Post Code Field Cannot Be Empty");
                            return false;
                        }
                        else if(e == null || e == "")
                        {
                            alert("Type Of Business Field Cannot Be Empty");
                            return false;
                        }
                        else if(f == null || f == "")
                        {
                            alert("Phone Number Field Cannot Be Empty");
                            return false;
                        }
                        else
                        {
                            alert("Organization Created Succesfully");
                            return true;
                        }
                    }
                    
                    function HideActionPanel() {
                        $find('TabbedPanels1').forms[organ][tab1].disabled;
                    }
                    
                </script>>
                <div id="center-column"><br />
                    <form id="organ" name="organ" action="SaveOrganController" method="get" onsubmit="return ValidateOrg()">
                        <div class="table">
                            <img src="img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
                            <img src="img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                            <table class="listing form" cellpadding="0" cellspacing="0">
                                <tr>
                                    <th class="full">organization details </th>
                                </tr>
                                <tr class="bg">
                                    <td height="30" class="first"><div id="TabbedPanels1" class="TabbedPanels">
                                            <ul class="TabbedPanelsTabGroup">
                                                <li class="TabbedPanelsTab" tabindex="0">Details 1</li>
                                                <li class="TabbedPanelsTab" tabindex="1" id="tab1">Details 2</li>
                                                <li class="TabbedPanelsTab" tabindex="2">Details 3</li>
                                                <li class="TabbedPanelsTab" tabindex="3">details 4</li>
                                                <li class="TabbedPanelsTab" tabindex="4">Details 5</li>
                                                <li class="TabbedPanelsTab" tabindex="5">BU/Directorate</li>
                                                <input type="checkbox" name="IsActive" id="IsActive" onclick="return " />
                                                <label for="IsActive">Is-Active</label>
                                                <input type="submit" name="Save" id="Save" value="Save" />
                                                </form>
                                                <form id="fo" name="fo" method="" action="ListOrganController">
                                                    <input type="submit" name="back" id="back" value="back" />
                                                </form>
                                            </ul>
                                            <div class="TabbedPanelsContentGroup">
                                                <div class="TabbedPanelsContent">
                                                    <table width="572" height="418" border="0" align="center" cellpadding="1" cellspacing="0">
                                                        <tr>
                                                            <td width="136">Organization name: <span class="MandatoryColour">*</span></td>
                                                            <td width="158"><label for="orgname"></label>
                                                                <input name="orgname" type="text" id="orgname" size="20" /></td>
                                                            <td width="112">Preferred Organization</td>
                                                            <td width="158"><input type="checkbox" name="prefer" id="prefer" />
                                                                <label for="prefer"></label></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Organization Short description <span class="MandatoryColour">*</span></td>
                                                            <td><label for="shortDesc"></label>
                                                                <textarea name="shortDesc" id="shortDesc" cols="25" rows="3"></textarea></td>
                                                            <td>expression of interest</td>
                                                            <td><input type="checkbox" name="express" id="express" />
                                                                <label for="express"></label></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Lead Contact </td>
                                                            <td><label for="leadcontact"></label>
                                                                <%
                                                                    String contact = (String) session.getAttribute("ListContact");
                                                                    if (contact == null) {

                                                                %>
                                                                <input name="leadcontact" type="text" id="leadcontact" size="15" value=""  />
                                                                <%                                                                } else {
                                                                %>
                                                                <input name="leadcontact" type="text" id="leadcontact" size="15" value="<%=contact%>"  />
                                                                <%                                                                    }
                                                                %>

                                                                <a href="ContactController">Look up</a></td>


                                                            <td>Type of Business:<span class="MandatoryColour"> *</span></td>
                                                            <td><label for="typeofbusiness"></label>
                                                                <%
                                                                    String yet = (String) session.getAttribute("ListName");
                                                                    if (yet == null) {
                                                                %>
                                                                <input name="type" type="text" id="type" value="" size="15"   />
                                                                <%                                                                } else {
                                                                %>
                                                                <input name="type" type="text" id="type" value="<%=yet%>" size="15"  />
                                                                <%
                                                                    }
                                                                %>
                                                                <a href="BusinessController">look up</a></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Address line 1 : <span class="MandatoryColour">*</span></td>
                                                            <td><label for="Add1"></label>
                                                                <input name="Add1" type="text" id="Add1" size="20" /></td>
                                                            <td>SIC code</td>
                                                            <td><label for="sic"></label>
                                                                <%
                                                                    String best = (String) session.getAttribute("ListSic");
                                                                    if (best == null) {
                                                                %>
                                                                <input name="sic" type="text" id="sic" size="20" value=" "  /></td>
                                                                <%                                                                } else {
                                                                %>
                                                            <input name="sic" type="text" id="sic" size="20" value="<%=best%>"  />
                                                            <%
                                                                }
                                                            %>
                                                        </tr>
                                                        <tr>
                                                            <td>Address line 2</td>
                                                            <td><label for="add2"></label>
                                                                <input name="add2" type="text" id="add2" size="20" /></td>
                                                            <td>Organization full Description</td>
                                                            <td><label for="fulldesc"></label>
                                                                <textarea name="fulldesc" id="fulldesc" cols="25" rows="3"></textarea></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Address line 3</td>
                                                            <td><label for="add3"></label>
                                                                <input name="add3" type="text" id="add3" size="20" /></td>
                                                            <td>Phone number:<span class="MandatoryColour">*</span></td>
                                                            <td><label for="phonenumber"></label>
                                                                <input name="number" type="text" id="number" size="20" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Post Code <span class="MandatoryColour">*</span></td>
                                                            <td><label for="postcode"></label>
                                                                <%
                                                                    String get = (String) session.getAttribute("List");
                                                                    if (get == null) {
                                                                %>
                                                                <input name="postcode" type="text" id="postcode" value=" " size="15" />
                                                                <%                                                                } else {
                                                                %>
                                                                <input name="postcode" type="text" id="postcode" value="<%= get%>" size="15" />
                                                                <%
                                                                    }
                                                                %>
                                                                <a href="LookupController">Look up</a></td>
                                                            <td>Fax</td>
                                                            <td><label for="fax"></label>
                                                                <input name="fax" type="text" id="fax" size="20" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>City/ Town</td>
                                                            <td><label for="city/town"></label>
                                                                <input name="city" type="text" id="city" size="20" /></td>
                                                            <td>Email</td>
                                                            <td><label for="email"></label>
                                                                <input name="email" type="text" id="email" size="20" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>County </td>
                                                            <td><label for="county"></label>
                                                                <input name="county" type="text" id="county" size="20" /></td>
                                                            <td>Web Address</td>
                                                            <td><label for="webaddress"></label>
                                                                <input name="web" type="text" id="web" size="20" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Nation/Country</td>
                                                            <td><label for="country"></label>
                                                                <select name="country" id="country">
                                                                    <%List<CountryBO> fist = (List<CountryBO>) request.getAttribute("Country");
                                                                        if (fist != null) {
                                                                            for (CountryBO b : fist) {
                                                                    %>
                                                                    <option value ="<%= b.getID()%>"><%=b.getCountryName()%></option>
                                                                    <%
                                                                            }
                                                                        }
                                                                    %>
                                                                </select></td>

                                                            <td>Charity number</td>
                                                            <td><label for="charity"></label>
                                                                <input name="charity" type="text" id="charity" size="20" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>&nbsp;</td>
                                                            <td>&nbsp;</td>
                                                            <td>Company number</td>
                                                            <td><label for="company"></label>
                                                                <input name="company" type="text" id="company" size="20" /></td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="TabbedPanelsContent" id ="tab1" >
                                                    <table width="566" border="0" cellspacing="2" cellpadding="2">

                                                        <tr>
                                                            <td width="100">Organization Specialism</td>
                                                            <td width="172"><p
                                                                    <label>
                                                                        <%
                                                                            List list = (List) request.getAttribute("Reference");
                                                                            Iterator item = list.iterator();
                                                                            while (item.hasNext()) {
                                                                                RefValueBO ref = (RefValueBO) item.next();
                                                                                String name = ref.getValueName();
                                                                                int ide = ref.getValueID();
                                                                        %>
                                                                        <input type="checkbox" name="specialism" value="<%=ide%>" id="specialism" />

                                                                        <%= name%> </label> 
                                                                    <br />
                                                                    <%
                                                                        }
                                                                    %>
                                                                </p></td>
                                                            <td width="76">Service personal capabilities</td>
                                                            <td width="183"><p>
                                                                    <label>
                                                                        <%
                                                                            List rit = (List) request.getAttribute("Personal");
                                                                            Iterator bit = rit.iterator();
                                                                            while (bit.hasNext()) {
                                                                                RefValueBO rep = (RefValueBO) bit.next();
                                                                                String great = rep.getValueName();
                                                                                int per = rep.getValueID();
                                                                        %>
                                                                        <input type="checkbox" name="person" value="<%= per%>" id="person" />
                                                                        <%=great%></label>
                                                                    <br />
                                                                    <%
                                                                        }
                                                                    %>
                                                                </p></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Service disability capability</td>
                                                            <td><p>
                                                                    <label>
                                                                        <%
                                                                            List getlist = (List) request.getAttribute("SDisability");
                                                                            Iterator it = getlist.iterator();
                                                                            while (it.hasNext()) {
                                                                                RefValueBO rebo = (RefValueBO) it.next();
                                                                                String getname = rebo.getValueName();
                                                                                int dis = rebo.getValueID();
                                                                        %>
                                                                        <input type="checkbox" name="disability" value="<%= dis%>" id="disability" />
                                                                        <%=getname%></label>
                                                                    <br />
                                                                    <%
                                                                        }
                                                                    %>
                                                                </p></td>
                                                            <td>service Ethnicity capabilities</td>
                                                            <td><p>
                                                                    <label>
                                                                        <%
                                                                            List getrit = (List) request.getAttribute("Ethnicity");
                                                                            Iterator ite = getrit.iterator();
                                                                            while (ite.hasNext()) {
                                                                                RefValueBO cap = (RefValueBO) ite.next();
                                                                                String sortname = cap.getValueName();
                                                                                int cab = cap.getValueID();
                                                                        %>
                                                                        <input type="checkbox" name="ethnic" value="<%= cab%>" id="ethnic" />
                                                                        <%=sortname%></label>
                                                                    <br />
                                                                    <%
                                                                        }
                                                                    %>
                                                                </p></td>
                                                        </tr>
                                                        <tr>
                                                            <td>service Barrier capability</td>
                                                            <td><p>
                                                                    <label>
                                                                        <%
                                                                            List bar = (List) request.getAttribute("Barriers");
                                                                            Iterator bat = bar.iterator();
                                                                            while (bat.hasNext()) {
                                                                                RefValueBO free = (RefValueBO) bat.next();
                                                                                String setname = free.getValueName();
                                                                                int bass = free.getValueID();
                                                                        %>
                                                                        <input type="checkbox" name="barrier" value="<%= bass%>" id="barrier" />
                                                                        <%= setname%></label>
                                                                    <br />
                                                                    <%
                                                                        }
                                                                    %>
                                                                </p></td>
                                                            <td>accreditation </td>
                                                            <td><p>
                                                                    <label>
                                                                        <%
                                                                            List gist = (List) request.getAttribute("Accredit");
                                                                            Iterator rat = gist.iterator();
                                                                            while (rat.hasNext()) {
                                                                                RefValueBO gep = (RefValueBO) rat.next();
                                                                                String add = gep.getValueName();
                                                                                int dat = gep.getValueID();
                                                                        %>
                                                                        <input type="checkbox" name="acreed" value="<%= dat%>" id="acreed" />
                                                                        <%= add%></label>
                                                                    <br />
                                                                    <%
                                                                        }
                                                                    %>
                                                                </p></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Service benefit capability</td>
                                                            <td><p>
                                                                    <label>
                                                                        <%
                                                                            List ben = (List) request.getAttribute("Benefit");
                                                                            Iterator ba = ben.iterator();
                                                                            while (ba.hasNext()) {
                                                                                RefValueBO fee = (RefValueBO) ba.next();
                                                                                String setben = fee.getValueName();
                                                                                int benfit = fee.getValueID();
                                                                        %>
                                                                        <input type="checkbox" name="benet" value="<%= benfit%>" id="benet" />
                                                                        <%=setben%></label>
                                                                    <br />
                                                                    <%
                                                                        }
                                                                    %>
                                                                </p></td>
                                                            <td>&nbsp;</td>
                                                            <td>&nbsp;</td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="TabbedPanelsContent">
                                                    <table width="572" border="0" cellspacing="2" cellpadding="2">
                                                        <tr>
                                                            <td width="275">EOI Program</td>
                                                            <td width="283"><p>
                                                                    <label>
                                                                        <%
                                                                            List his = (List) request.getAttribute("Programmes");
                                                                            Iterator trade = his.iterator();
                                                                            while (trade.hasNext()) {
                                                                                RefValueBO def = (RefValueBO) trade.next();
                                                                                String prog = def.getValueName();
                                                                                int pro = def.getValueID();
                                                                        %>
                                                                        <input type="checkbox" name="program" value="<%= pro%>" id="program" />
                                                                        <%=prog%></label>
                                                                    <br />
                                                                    <%
                                                                        }
                                                                    %>
                                                                </p></td>
                                                        </tr>
                                                        <tr>
                                                            <td>EOI Services</td>
                                                            <td><p>
                                                                    <label>
                                                                        <%
                                                                            List dis = (List) request.getAttribute("Services");
                                                                            Iterator rade = dis.iterator();
                                                                            while (rade.hasNext()) {
                                                                                RefValueBO bif = (RefValueBO) rade.next();
                                                                                String serve = bif.getValueName();
                                                                                int sat = bif.getValueID();
                                                                        %>
                                                                        <input type="checkbox" name="server" value="<%= sat%>" id="server" />
                                                                        <%=serve%></label>
                                                                    <br />
                                                                    <%
                                                                        }
                                                                    %>
                                                                </p></td>
                                                        </tr>
                                                    </table>
                                                    </form>
                                                </div>
                                                <div class="TabbedPanelsContent">
                                                    <div class="TabbedPanelsContent">
                                                        <fieldset>
                                                            <legend>Premise</legend>
                                                            <table width="575" border="0" cellspacing="2" cellpadding="2">
                                                                <tr class="TableHeading">
                                                                    <td width="97">Premise Name</td>
                                                                    <td width="118">Address Name</td>
                                                                    <td width="157">Primary Location</td>
                                                                    <td width="98">Phone number</td>
                                                                    <td width="73">&nbsp;</td>
                                                                </tr>
                                                                <tr>
                                                                    <td>&nbsp;</td>
                                                                    <td>&nbsp;</td>
                                                                    <td>&nbsp;</td>
                                                                    <td>&nbsp;</td>
                                                                    <td><p>&nbsp;</p>
                                                                        <p>&nbsp;</p>
                                                                        <p>&nbsp;</p></td>
                                                                </tr>
                                                            </table>
                                                        </fieldset>
                                                        <fieldset>
                                                            <legend>Located In</legend>
                                                            <table width="576" border="0" cellspacing="2" cellpadding="2">
                                                                <tr>
                                                                    <td width="18">Ward</td>
                                                                    <td width="18"><label for="ward"></label>
                                                                        <input type="text" name="ward" id="ward" /></td>
                                                                    <td width="18">NHS authority</td>
                                                                    <td width="256"><label for="NHS"></label>
                                                                        <input type="text" name="NHS" id="NHS" /></td>
                                                                </tr>
                                                                <tr>
                                                                    <td>Borough</td>
                                                                    <td><label for="Borough"></label>
                                                                        <input type="text" name="Borough" id="Borough" /></td>
                                                                    <td>Goverment Office Region</td>
                                                                    <td><label for="GovtOff"></label>
                                                                        <select name="GovtOff" id="GovtOff">
                                                                            <option>Govt Office 1</option>
                                                                            <option>Govt Office 2</option>
                                                                            <option>Govt Office 3</option>
                                                                        </select></td>
                                                                </tr>
                                                                <tr>
                                                                    <td>Local Authority</td>
                                                                    <td><label for="LocalAuthority"></label>
                                                                        <input type="text" name="LocalAuthority" id="LocalAuthority" /></td>
                                                                    <td>Trust region</td>
                                                                    <td><label for="trustRegion"></label>
                                                                        <select name="trustRegion" id="trustRegion">
                                                                            <option>Trust Region 1</option>
                                                                            <option>Trust Region 2</option>
                                                                            <option>Trust Region 3</option>
                                                                        </select></td>
                                                                </tr>
                                                                <tr>
                                                                    <td>Unitiary Authority</td>
                                                                    <td><label for="UniAuthority"></label>
                                                                        <input type="text" name="UniAuthority" id="UniAuthority" /></td>
                                                                    <td>Trust Districy</td>
                                                                    <td><label for="trustDistr"></label>
                                                                        <select name="trustDistr" id="trustDistr">
                                                                            <option>District 1</option>
                                                                            <option>District 2</option>
                                                                        </select></td>
                                                                </tr>
                                                            </table>
                                                        </fieldset>
                                                    </div>
                                                </div>
                                                <div class="TabbedPanelsContent">
                                                    <fieldset>
                                                        <legend>Current List Of Supporting Materials</legend>
                                                        <form id="sup" name ="sup" meth="get" action="createSupportController">
                                                            <table width="588" border="0" cellspacing="2" cellpadding="2">
                                                                <tr>
                                                                    <td colspan="5">
                                                                        <a href = "" style = "text-decoration:none">All</a> <a href = "" style = "text-decoration:none">| 0-9 </a> 
                                                                        <a href = "" style = "text-decoration:none">| A B C D E</a> <a href = "" style = "text-decoration:none">| F G H I J </a> 
                                                                        <a href = "" style = "text-decoration:none"> | K L M N </a> <a href = "" style = "text-decoration:none">| O P Q R </a>
                                                                        <a href = "" style = "text-decoration:none">| S T U V </a> <a href = "" style = "text-decoration:none">| W X Y Z</a> |
                                                                        <input type="submit"  name="submit" id="submit" value="Create" />
                                                                        <input type="checkbox" name="Inactive2" id="Inactive2" />
                                                                        <label for="Inactive2">include In-Active</label></td>
                                                                </tr>

                                                                <tr class="tableHeading2">
                                                                    <td width="126" class="TableHeading"><b>URL</b></td>
                                                                    <td width="124"><b>Description</b></td>
                                                                    <td width="81"><b>Type </b></td>
                                                                    <td width="76"><b>Added By</b></td>
                                                                    <td width="149"><b>Added Date</b></td>
                                                                </tr>
                                                                <%
                                                                    List sit = (List) request.getAttribute("SupList");
                                                                    Iterator hit = sit.iterator();
                                                                    while (hit.hasNext()) {
                                                                        SupMaterialsBO sub = (SupMaterialsBO) hit.next();
                                                                        String url = sub.getURL();
                                                                        String desc = sub.getDesc();
                                                                        String type = sub.getType();
                                                                        String add = sub.getAddedBY();
                                                                        String date = sub.getAddedDate();

                                                                %>
                                                                <tr class="normal">
                                                                    <td class="normal"><%=url%></td>
                                                                    <td><%= desc%></td>
                                                                    <td><%= type%></td>
                                                                    <td><%= add%></td>
                                                                    <td><%= date%></td>
                                                                </tr>
                                                                <%
                                                                    }
                                                                %>
                                                            </table>
                                                            <p>&nbsp;</p>
                                                        </form>
                                                    </fieldset>
                                                </div>
                                                <div class="TabbedPanelsContent">
                                                    <fieldset>
                                                        <legend>Bu/Directorate</legend>
                                                        <form id="BUD" name="BUD" method="get" action="DirectorateController">
                                                            <table width="588" border="0" cellspacing="2" cellpadding="2">
                                                                <tr>
                                                                    <td colspan="5"><a href = "" style = "text-decoration:none">All</a> 
                                                                        <a href = "" style = "text-decoration:none">| 0-9 </a> 
                                                                        <a href = "" style = "text-decoration:none">| A B C D E</a> 
                                                                        <a href = "" style = "text-decoration:none">| F G H I J </a> 
                                                                        <a href = "" style = "text-decoration:none"> | K L M N </a> 
                                                                        <a href = "" style = "text-decoration:none">| O P Q R </a> 
                                                                        <a href = "" style = "text-decoration:none">| S T U V </a> 
                                                                        <a href = "" style = "text-decoration:none">| W X Y Z</a> |
                                                                        <input type="submit"  name="button" id="submit" value="Create" />
                                                                        <input type="checkbox" name="Inactive" id="Inactive" />
                                                                        <label for="Inactive">include In-Active</label></td>
                                                                </tr>
                                                                <tr class="TableHeading">
                                                                    <td width="126">BU/Directorate name</td>
                                                                    <td width="124">Office address line 1</td>
                                                                    <td width="81">Post code</td>
                                                                    <td width="76">Contact</td>
                                                                    <td width="149">Is Active</td>
                                                                </tr>
                                                                <%
                                                                    List is = (List) request.getAttribute("ListDirect");
                                                                    Iterator its = is.iterator();
                                                                    while (its.hasNext()) {

                                                                        DirectoratesBO dir = (DirectoratesBO) its.next();
                                                                        String name = dir.getName();
                                                                        String add = dir.getAddline1();
                                                                        String post = dir.getPostcode();
                                                                        String lead = dir.getLead();
                                                                        String active = dir.getIsActive();
                                                                %>
                                                                <tr>
                                                                    <td><%= name%></td>
                                                                    <td><%= add%></td>
                                                                    <td><%= post%></td>
                                                                    <td><%= lead%></td>
                                                                    <td><%= active%></td>
                                                                </tr>
                                                                <%
                                                                    }
                                                                %>

                                                                <tr>
                                                                    <td colspan="4">&nbsp;</td>
                                                                    <td>&nbsp;</td>
                                                                </tr>
                                                        </form>   
                                                        </table>
                                                    </fieldset>
                                                </div>
                                            </div>
                                        </div>					    <label for="CHECK3"></label></td>
                                </tr>
                                <tr class="bg">
                                    <td class="first">&nbsp;</td>
                                </tr>
                            </table>
                            <p>&nbsp;</p>
                        </div>
                </div>
                <div id="right-column">
                    <strong class="h">INFO</strong>
                    <div class="box">This screen is use to add supporting materials for organization</div>
                </div>
            </div>
            <div id="footer">
                <p>&nbsp;</p>
                <p>&nbsp;</p>
            </div>
        </div>
        <script type="text/javascript">
            var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
        </script>
    </body>
</html>
